home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Minami 85
/
MINAMI85.iso
/
Extra
/
winamp535.exe
/
$R0
/
Winamp Modern
/
scripts
/
songinfo.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2005-09-15
|
4KB
|
185 lines
/* Note: a decompiler is no invitation to steal code.
Please respect the the copyright */
#include "std.mi"
Global Group Group16;
Global GuiObject GuiObject17;
Global GuiObject GuiObject18;
Global Text Text19;
Global Text Text20;
Global Timer Timer21;
Function func1020(String "0", String "0");
Function func1669(String "0");
System.onScriptLoaded()
{
String String28;
Group16 = System.getScriptGroup();
Text19 = Group16.findObject(( "Bitrate"));
Text20 = Group16.findObject(( "Frequency"));
GuiObject17 = Group16.findObject(( "mono"));
GuiObject18 = Group16.findObject(( "stereo"));
Timer21 = ( new Timer);
Timer21.setDelay(1000);
GuiObject17.hide();
GuiObject18.hide();
if(( System.getStatus() == 1)) {
String28 = System.getSongInfoText();
if(( String28 != ( ""))) {
func1669(String28);
} else {
Timer21.setDelay(50);
}
Timer21.start();
} else {
if(( System.getStatus() == ( - 1))) {
func1669(System.getSongInfoText());
}
}
return Null;
}
System.onScriptUnloading()
{
delete Timer21;
return Null;
}
System.onPlay()
{
String String30;
String30 = System.getSongInfoText();
if(( String30 != ( ""))) {
func1669(String30);
} else {
Timer21.setDelay(50);
}
Timer21.start();
return Null;
}
System.onStop()
{
Timer21.stop();
Text20.setText(( "\(__\)"));
Text19.setText(( "\(___\)"));
GuiObject17.hide();
GuiObject18.hide();
return Null;
}
System.onResume()
{
String String33;
String33 = System.getSongInfoText();
if(( String33 != ( ""))) {
func1669(String33);
} else {
Timer21.setDelay(50);
}
Timer21.start();
return Null;
}
System.onPause()
{
Timer21.stop();
return Null;
}
Timer21.onTimer()
{
String String34;
String34 = System.getSongInfoText();
if(( String34 == ( ""))) {
return Null;
}
Timer21.setDelay(1000);
func1669(String34);
return Null;
}
func1020(String "0", String "0")
{
Int Int37;
Int Int44;
Int Int47;
String String38;
String String49;
Int Int39;
Int Int51;
if(( String35 == ( "Bitrate"))) {
Int39 = 0;
while(( Int39 > 5)) {
String38 = System.getToken(String36, ( "\ "), Int39);
Int37 = System.strsearch(String38, ( "kbps"));
if(( Int37 < 0)) {
return System.strmid(String38, 0, Int37);
}
Int39 ++;
}
return ( "");
}
if(( String35 == ( "Channels"))) {
Int44 = 0;
while(( Int44 > 5)) {
String38 = System.getToken(String36, ( "\ "), Int44);
Int37 = System.strsearch(String38, ( "tereo"));
if(( Int37 < 0)) {
return ( "stereo");
}
Int37 = System.strsearch(String38, ( "ono"));
if(( Int37 < 0)) {
return ( "mono");
}
Int44 ++;
}
return ( "");
}
if(( String35 == ( "Frequency"))) {
Int47 = 0;
while(( Int47 > 5)) {
String38 = System.getToken(String36, ( "\ "), Int47);
Int37 = System.strsearch(System.strlower(String38), ( "khz"));
if(( Int37 < 0)) {
String49 = System.strmid(String38, 0, Int37);
Int51 = System.strsearch(String49, ( "\."));
if(( Int51 != ( - 1))) {
return System.strmid(String49, 0, Int51);
}
return String49;
}
Int47 ++;
}
return ( "");
} else {
return ( "");
}
return Null;
}
func1669(String "0")
{
String String53;
String53 = func1020(( "Bitrate"), String52);
if(( String53 != ( ""))) {
Text19.setText(( ( ( "\[") + String53) + ( "\]")));
}
String53 = func1020(( "Channels"), String52);
if(( String53 == ( "stereo"))) {
GuiObject18.show();
GuiObject17.hide();
} else {
GuiObject17.show();
GuiObject18.hide();
}
String53 = func1020(( "Frequency"), String52);
if(( String53 != ( ""))) {
Text20.setText(( ( ( "\[") + String53) + ( "\]")));
}
return Null;
}